home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / stty.man < prev    next >
Encoding:
Text File  |  1989-02-23  |  10.2 KB  |  265 lines

  1.  
  2.  
  3.  
  4. STTY                      User Commands                      STTY
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      stty - set terminal options
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ssttttyy [ option ... ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      _S_t_t_y sets certain I/O options on the current output termi-
  16.      nal, placing its output on the diagnostic output.  With no
  17.      argument, it reports the speed of the terminal and the set-
  18.      tings of the options which are different from their
  19.      defaults.  The following options modify the output as
  20.      described:
  21.  
  22.      aallll       All normally used option settings are reported.
  23.  
  24.      eevveerryytthhiinngg
  25.                Everything _s_t_t_y knows about is printed.
  26.  
  27.      ssppeeeedd     The terminal speed alone is printed on the stan-
  28.                dard output.
  29.  
  30.      ssiizzee      The terminal (window) sizes are printed on the
  31.                standard output, first rows and then columns.
  32.  
  33.                The option strings are selected from the following
  34.                set:
  35.  
  36.      rreesseett     restore the terminal's state to a default ``nor-
  37.                mal'' state;  useful if a program crash has left
  38.                the terminal in an unpleasant state
  39.  
  40.      eevveenn      allow even parity input
  41.      --eevveenn     disallow even parity input
  42.      oodddd       allow odd parity input
  43.      --oodddd      disallow odd parity input
  44.      rraaww       raw mode input (nnoo input processing (erase, kill,
  45.                interrupt, ...); parity bit passed back)
  46.      --rraaww      negate raw mode
  47.      ccooookkeedd    same as `-raw'
  48.      ccbbrreeaakk    make each character available to _r_e_a_d(2) as
  49.                received; no erase and kill processing, but all
  50.                other processing (interrupt, suspend, ...) is per-
  51.                formed
  52.      --ccbbrreeaakk   make characters available to _r_e_a_d only when new-
  53.                line is received
  54.      --nnll       allow carriage return for new-line, and output
  55.                CR-LF for carriage return or new-line
  56.      nnll        accept only new-line to end lines
  57.      eecchhoo      echo back every character typed
  58.      --eecchhoo     do not echo characters
  59.      llccaassee     map upper case to lower case
  60.  
  61.  
  62.  
  63. Sprite v1.0                May 5, 1986                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. STTY                      User Commands                      STTY
  71.  
  72.  
  73.  
  74.      --llccaassee    do not map case
  75.      ttaannddeemm    enable flow control, so that the system sends out
  76.                the stop character when its internal queue is in
  77.                danger of overflowing on input, and sends the
  78.                start character when it is ready to accept further
  79.                input
  80.      --ttaannddeemm   disable flow control
  81.      --ttaabbss     replace tabs by spaces when printing
  82.      ttaabbss      preserve tabs
  83.      eekk        set erase and kill characters to # and @
  84.      For the following commands which take a character argument
  85.      _c, you may also specify _c as the ``u'' or ``undef'', to set
  86.      the value to be undefined.  A value of ``^x'', a 2 character
  87.      sequence, is also interpreted as a control character, with
  88.      ``^?'' representing delete.
  89.  
  90.      eerraassee _c   set erase character to _c (default `#', but often
  91.                reset to ^H.)
  92.      kkiillll _c    set kill character to _c (default `@', but often
  93.                reset to ^U.)
  94.      iinnttrr _c    set interrupt character to _c (default DEL or ^?
  95.                (delete), but often reset to ^C.)
  96.      qquuiitt _c    set quit character to _c (default control \.)
  97.      ssttaarrtt _c   set start character to _c (default control Q.)
  98.      ssttoopp _c    set stop character to _c (default control S.)
  99.      eeooff _c     set end of file character to _c (default control
  100.                D.)
  101.      bbrrkk _c     set break character to _c (default undefined.) This
  102.                character is an additional character causing
  103.                wakeup.
  104.      ccrr00 ccrr11 ccrr22 ccrr33
  105.                select style of delay for carriage return (see
  106.                _i_o_c_t_l(2))
  107.      nnll00 nnll11 nnll22 nnll33
  108.                select style of delay for linefeed
  109.      ttaabb00 ttaabb11 ttaabb22 ttaabb33
  110.                select style of delay for tab
  111.      ffff00 ffff11   select style of delay for form feed
  112.      bbss00 bbss11   select style of delay for backspace
  113.  
  114.      ttttyy3333     set all modes suitable for the Teletype Corpora-
  115.                tion Model 33 terminal.
  116.      ttttyy3377     set all modes suitable for the Teletype Corpora-
  117.                tion Model 37 terminal.
  118.      vvtt0055      set all modes suitable for Digital Equipment Corp.
  119.                VT05 terminal
  120.      ddeecc       set all modes suitable for Digital Equipment Corp.
  121.                operating systems users; (erase, kill, and inter-
  122.                rupt characters to ^?, ^U, and ^C, decctlq and
  123.                ``newcrt''.)
  124.  
  125.      ttnn330000     set all modes suitable for a General Electric
  126.  
  127.  
  128.  
  129. Sprite v1.0                May 5, 1986                          2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. STTY                      User Commands                      STTY
  137.  
  138.  
  139.  
  140.                TermiNet 300
  141.      ttii770000     set all modes suitable for Texas Instruments 700
  142.                series terminal
  143.      tteekk       set all modes suitable for Tektronix 4014 terminal
  144.      00         hang up phone line immediately
  145.      5500 7755 111100 113344 115500 220000 330000 660000 11220000 11880000 22440000 44880000 99660000 eexxttaa eexxttbb
  146.                Set terminal baud rate to the number given, if
  147.                possible.  (These are the speeds supported by the
  148.                DH-11 interface).
  149.  
  150.      rroowwss _n    The terminal size is recorded as having _n rows.
  151.  
  152.      ccoolluummnnss _n The terminal size is recorded as having _n columns.
  153.  
  154.      ccoollss _n    is an alias for _c_o_l_u_m_n_s.
  155.  
  156.      A teletype driver which supports the job control processing
  157.      of _c_s_h(1) and more functionality than the basic driver is
  158.      fully described in _t_t_y(4).  The following options apply only
  159.      to it.
  160.  
  161.      nneeww       Use new driver (switching flushes typeahead).
  162.      ccrrtt       Set options for a CRT (crtbs, ctlecho and, if >=
  163.                1200 baud, crterase and crtkill.)
  164.      ccrrttbbss     Echo backspaces on erase characters.
  165.      pprrtteerraassee  For printing terminal echo erased characters back-
  166.                wards within ``\'' and ``/''.
  167.      ccrrtteerraassee  Wipe out erased characters with ``backspace-
  168.                space-backspace.''
  169.      --ccrrtteerraassee Leave erased characters visible; just backspace.
  170.      ccrrttkkiillll   Wipe out input on like kill ala ccrrtteerraassee..
  171.      --ccrrttkkiillll  Just echo line kill character and a newline on
  172.                line kill.
  173.      ccttlleecchhoo   Echo control characters as ``^_x'' (and delete as
  174.                ``^?''.) Print two backspaces following the EOT
  175.                character (control D).
  176.      --ccttlleecchhoo  Control characters echo as themselves; in cooked
  177.                mode EOT (control-D) is not echoed.
  178.  
  179.      ddeeccccttllqq   After output is suspended (normally by ^S), only a
  180.                start character (normally ^Q) will restart it.
  181.                This is compatible with DEC's vendor supplied sys-
  182.                tems.
  183.  
  184.      --ddeeccccttllqq  After output is suspended, any character typed
  185.                will restart it; the start character will restart
  186.                output without providing any input.  (This is the
  187.                default.)
  188.      ttoossttoopp    Background jobs stop if they attempt terminal out-
  189.                put.
  190.      --ttoossttoopp   Output from background jobs to the terminal is
  191.                allowed.
  192.  
  193.  
  194.  
  195. Sprite v1.0                May 5, 1986                          3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. STTY                      User Commands                      STTY
  203.  
  204.  
  205.  
  206.      ttiillddee     Convert ``~'' to ```'' on output (for Hazeltine
  207.                terminals).
  208.      --ttiillddee    Leave poor ``~'' alone.
  209.      fflluusshhoo    Output is being discarded usually because user hit
  210.                control O (internal state bit).
  211.      --fflluusshhoo   Output is not being discarded.
  212.      ppeennddiinn    Input is pending after a switch from cbreak to
  213.                cooked and will be re-input when a read becomes
  214.                pending or more input arrives (internal state
  215.                bit).
  216.      --ppeennddiinn   Input is not pending.
  217.      ppaassss88     Passes all 8 bits through on input, in any mode.
  218.      --ppaassss88    Strips the 0200 bit on input except in raw mode.
  219.      mmddmmbbuuff    Start/stop output on carrier transitions (not
  220.                implemented).
  221.      --mmddmmbbuuff   Return error if write attempted after carrier
  222.                drops.
  223.      lliittoouutt    Send output characters without any processing.
  224.      --lliittoouutt   Do normal output processing, inserting delays,
  225.                etc.
  226.      nnoohhaanngg    Don't send hangup signal if carrier drops.
  227.      --nnoohhaanngg   Send hangup signal to control process group when
  228.                carrier drops.
  229.      eettxxaacckk    Diablo style etx/ack handshaking (not imple-
  230.                mented).
  231.  
  232.      The following special characters are applicable only to the
  233.      new teletype driver and are not normally changed.
  234.  
  235.      ssuusspp _c    set suspend process character to _c (default con-
  236.                trol Z).
  237.      ddssuusspp _c   set delayed suspend process character to _c
  238.                (default control Y).
  239.      rrpprrnntt _c   set reprint line character to _c (default control
  240.                R).
  241.      fflluusshh _c   set flush output character to _c (default control
  242.                O).
  243.      wweerraassee _c  set word erase character to _c (default control W).
  244.      llnneexxtt _c   set literal next character to _c (default control
  245.                V).
  246.  
  247. SSEEEE AALLSSOO
  248.      ioctl(2), tabs(1), tset(1), tty(4)
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261. Sprite v1.0                May 5, 1986                          4
  262.  
  263.  
  264.  
  265.